package org.charmsoft.validation;

/**
 * @ Author: Allen J L Chen
 * This enum is to
 * 26/3/2025
 **/
public enum ValidationErrorCode {

    VALIDATION_PASS(200, "Validation passed"),
    POJO_HEAD_LINE_INVALID(501,"POJO head line format is invalid!"),
    FIELDS_HEAD_LINE_INVALID(502,"Fields head line format is invalid!"),
    FIELDS_DATATYPE_HEAD_LINE_INVALID(503,"Fields datatype head line format is invalid!"),
    SQL_DATATYPE_HEAD_LINE_INVALID(504,"SQL datatype head line format is invalid!"),
    POJO_NAME_FORMAT_INVALID(505,"POJO name format is invalid!"),
    FIELD_NAME_FORMAT_INVALID(506,"Field name format is invalid!"),
    FIELD_TYPE_FORMAT_INVALID(507,"Field type format is invalid!"),
    SQL_DATATYPE_FORMAT_INVALID(508,"SQL dataType format is invalid!");

    private int code;

    private String value;

    ValidationErrorCode(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
